﻿using System;
using System.Linq;
using System.ServiceModel.Activation;
using ServiceContracts;

namespace WebApplication1
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class MyInterface : IMyInterface
    {
        public int GetRandomNumber()
        {
            return new Random().Next();
        }

        public string ProcessString(string @string)
        {
            return new string(@string.Reverse().ToArray());
        }

        public DateTime MakeDate(int year, int month, int date)
        {
            return new DateTime(year, month, date);
        }
    }
}
